package com.proxy.chapter02.xu;

/**
 *
 * @author xudenghui
 * @create 2023-06-19 9:32
 **/
public class SgProxy implements Specialty{

    private WySpecialty realSubject = new WySpecialty();

    @Override
    public void display() {
        preRequest();
        realSubject.display();
        postRequest();
    }

    public void preRequest() {
        System.out.println("韶关代理婺源特产开始。");
    }
    public void postRequest() {
        System.out.println("韶关代理婺源特产结束。");
    }
}
